import 'package:pigeon/pigeon.dart';

// class Book {
//   String? title;
//   String? author;
// }
//
// @HostApi()
// abstract class BookApi {
//   List<Book?> search(String keyword);
// }

// class WaterMarkFileReply {
//   Uint8List? waterMarkfile;
// }
//
// class WaterMarkFileRequest {
//   Uint8List? backgroundfile;
//   String? textContext;
//   int? fontSize;
// }
//
// @HostApi()
// abstract class WaterMarkApi{
//   WaterMarkFileReply fileToWaterMark(WaterMarkFileRequest request);
// }
//
// // 输出配置
// // flutter pub run pigeon --input pigeons/message.dart
// void configurePigeon(PigeonOptions opts) {
//   opts=PigeonOptions(dartOut: './lib/message.dart',javaOut:'./android/src/main/kotlin/com/sunvua/water_mark/WaterMark.java',javaOptions:JavaOptions(package: "com.sunvua.water_mark") );
//   // opts.dartOut = './lib/message.dart';
//   // opts.javaOut = 'android/src/main/kotlin/com/zero/flutter_pigeon_plugin/Pigeon.java';
//   // opts.javaOptions.package = "com.zero.flutter_pigeon_plugin";
//   // opts.objcHeaderOut = 'ios/Runner/Pigeon.h';
//   // opts.objcSourceOut = 'ios/Runner/Pigeon.m';
//   // opts.objcOptions.prefix = 'FLT';
// }


class WaterMarkFilePathReply {
  String? waterMarkfilePath;
}

class WaterMarkFilePathRequest {
  String? backgroundfilePath;
  String? textContext;
  int? fontSize;
}

@HostApi()
abstract class WaterMarkFilePathApi{
  WaterMarkFilePathReply fileToWaterMark(WaterMarkFilePathRequest request);
}

// 输出配置
// flutter pub run pigeon --input pigeons/message.dart
void configurePigeon(PigeonOptions opts) {
  opts=PigeonOptions(dartOut: './lib/message.dart',javaOut:'./android/src/main/kotlin/com/sunvua/water_mark/WaterMark.java',javaOptions:JavaOptions(package: "com.sunvua.water_mark") );
  // opts.dartOut = './lib/message.dart';
  // opts.javaOut = 'android/src/main/kotlin/com/zero/flutter_pigeon_plugin/Pigeon.java';
  // opts.javaOptions.package = "com.zero.flutter_pigeon_plugin";
  // opts.objcHeaderOut = 'ios/Runner/Pigeon.h';
  // opts.objcSourceOut = 'ios/Runner/Pigeon.m';
  // opts.objcOptions.prefix = 'FLT';
}